package com.yonyougov.devops.cruxcisupport.role;

import com.yonyougov.devops.cruxcisupport.role.vo.LinkedRoleRespVo;
import com.yonyougov.devops.cruxcisupport.role.vo.NoLinkRoleVo;
import com.yonyougov.devops.cruxcisupport.role.vo.NotLinkedRoleByUserIdDto;
import com.yonyougov.devops.fwc.core.entity.Pagination;
import com.yonyougov.devops.fwc.core.service.BaseService;

import java.math.BigInteger;
import java.util.List;

/**
 * t_role服务
 */
public interface RoleService extends BaseService<RoleEntity, BigInteger> {
    //<!--用户自定义代码开始-->
    List<RoleEntity> getCurrentUserRoles() throws Exception;

    List<BigInteger> getCurrentUserRoleIds() throws Exception;

    Pagination<NoLinkRoleVo> findNoLinkRoleByUserId(NotLinkedRoleByUserIdDto notLinkedRoleByUserIdDto);

    List<LinkedRoleRespVo> findLinkedRoleByUserId(BigInteger userId);

    //<!--用户自定义代码结束-->
}
